package com.lvcoding.clientfinal.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.Principal;

/**
 * @author wuyanshen
 * @description 描述
 * @date 2022-02-22 下午6:44
 */
@RestController
public class UserController {

    @GetMapping("user")
    public Principal principal(Principal principal) {
        return principal;
    }

    @GetMapping("test")
    public String principal() {
        return "hello axios";
    }
}
